#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/5/7 2:27 下午
# @Author  : adam
import demjson
import json
import time

mm=(int(round(time.time() * 1000)))
print(mm)

# json1 = {"msg-id": "w5Te1O4VJftl5cXXoDQsVb", "conv-id": "608a4c1a80e90140695a16e9", "is-conv": True, "conv-type": 2,
#          "from": "{"userId":"43e6fb164feb11eba06600163e245ecd","userName":"你不懂爱，确懂伤害。"}", "bin": False,
#          "timestamp": 1619676311516, "is-room": False, "from-ip": None, "to": "608a4c1a80e90140695a16e9",
#          "data": "{"_lctext":"很开心","_lcattrs":{"avatar":"https://adam-test.oss-cn-shanghai.aliyuncs.com/pro/images/headimg/2.jpeg"},"_lctype":-1}"}
#
# str_json = """{"msg-id": "w5Te1O4VJftl5cXXoDQsVb", "conv-id": "608a4c1a80e90140695a16e9", "is-conv": 1, "conv-type": 2,
#             "from": "{"userId":"43e6fb164feb11eba06600163e245ecd","userName":"你不懂爱，确懂伤害。"}", "bin": 0,
#             "timestamp": 1619676311516, "is-room": 0, "from-ip": "", "to": "608a4c1a80e90140695a16e9",
#             "data": "{"_lctext":"很开心","_lcattrs":{"avatar":"https://adam-test.oss-cn-shanghai.aliyuncs.com/pro/images/headimg/2.jpeg"},"_lctype":-1}"}"""

# json_obj = demjson(str_json)
# print(json_obj)


# obj=demjson.decode(str_json)
# print(obj)
#
# js_obj=json.loads(obj)
# print(js_obj)
#
#
# ss={"msg-id": "w5Te1O4VJftl5cXXoDQsVb", "conv-id": "608a4c1a80e90140695a16e9", "is-conv": 1, "conv-type": 2, "from": "{'userId':'43e6fb164feb11eba06600163e245ecd','userName':'你不懂爱，确懂伤害。'}", "bin": 0, "timestamp": 1619676311516, "is-room": 0, "from-ip": "", "to": "608a4c1a80e90140695a16e9", "data": "{'_lctext':'很开心','_lcattrs':{'avatar':'https://adam-test.oss-cn-shanghai.aliyuncs.com/pro/images/headimg/2.jpeg'},'_lctype':-1}"}


# aa={'msg-id': 'w5Te1O4VJftl5cXXoDQsVb', 'conv-id': '608a4c1a80e90140695a16e9', 'is-conv': 1, 'conv-type': 2, 'from': '{"userId":"43e6fb164feb11eba06600163e245ecd","userName":"你不懂爱，确懂伤害。"}', 'bin': 0, 'timestamp': 1619676311516, 'is-room': 0, 'from-ip': '', 'to': '608a4c1a80e90140695a16e9', 'data': '{"_lctext":"很开心","_lcattrs":{"avatar":"https://adam-test.oss-cn-shanghai.aliyuncs.com/pro/images/headimg/2.jpeg"},"_lctype":-1}'}
# bb=json.dumps(aa)
#
# ss=json.loads(json.dumps(eval(bb)))
# print(ss)
#
#
tu={'conv-id': '345', 'from': '{"userId":735,"userName":"张某某"}', 'timestamp': 1619676441233, 'from-ip': '223.166.93.13', 'to': '345', 'data': '{"_lcattrs":{"avatar":"https://cdn.youinsh.cn/saas_pro/static/user/user-default.png"},"_lcfile":{"url":"http://lc-BL0eDKFk.cn-n1.lcfile.com/e9fba62172657feb41c4.jpg","metaData":{"size":103785,"owner":"unknown","name":"avatar.jpg"}},"_lctype":-2}'}
zi={'conv-id': '345', 'from': '{"userId":46,"userName":"hello 张😎"}', 'timestamp': 1619676407631, 'from-ip': '223.166.93.13', 'to': '345', 'data': '{"_lcattrs":{"avatar":"https://thirdwx.qlogo.cn/mmopen/vi_32/DrLn7LzyT2u7J5zzVYg"},"_lctext":"说的好","_lctype":-1}'}
# zi1= {'conv-id': '345',
#       'from': '{"userId":"43e705844feb11eba06600163e245ecd","userName":"半梦半醒半浮生"}',
#       'timestamp': 1619676313655,
#       'from-ip': None,
#       'to': '345',
#       'data': '{"_lctext":"老师讲得对","_lcattrs":{"avatar":"https://adam-test.oss-cn-shanghai.aliyuncs.com/pro/images/headimg/14.jpeg"},"_lctype":-1}'}


# 1619676313655
# 1279578704.6725271
